package gg;

import java.util.Random;

public class shuzhu2 {
    public static void main(String[] args) {
        Random r = new Random();
        int[] array = new int[10];
        int num = 0;


        for (int i = 0; i < array.length; i++) {
            array[i] = r.nextInt(101) + 100;
            num += array[i];
            System.out.print(array[i] + " ");

        }
        System.out.println(num);
        for (int i = 0; i < array.length; i++) {
            if ((i%2!=0)&&(array[i]%2!=0)){
                System.out.println(array[i]);
            }
        }
    }
}
